﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SSOF.Domain
{
    public class User
    {
        public int UserId { get; set; }
        public string LoginId { get; set; }
        public string LoginPassword { get; set; }
        public string Email { get; set; }
        public string UserName { get; set; }
        public virtual IList<Question> Questions { get; set; }
    }

    public class Question
    {
        public int QuestionId { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public int UserId { get; set; }
        public virtual User User { get; set; }
        public virtual IList<Answer> Answers { get; set; }
        public virtual IList<Tag> Tags { get; set; }
    }

    public class Answer
    {
        public int AnswerId { get; set; }
        public string Content { get; set; }
        public int QuestionId { get; set; }
        public virtual Question Question { get; set; }
    }

    public class Tag
    {
        public int TagId { get; set; }
        public string Name { get; set; }
        public virtual IList<Question> Questions { get; set; }
    }



}
